x = [0
1
2
4
5
6
7
8
9
10
11
12
13
13.5
13.89717
14.06567
14.06567
14.21884
14.34139
14.49456
14.63242
14.63242
14.87751
14.86219
15.03068
15.10727
15.22981
15.22981
15.27577
15.44426
15.49021
15.62807
15.64339
15.75062
15.91911
15.91911
15.98038
15.9957
16.05697
16.13356
16.36332
16.37864
16.50118
16.60841
16.685
16.74627
16.88413
16.88413
16.88413
16.97603
17.2058
17.23643
17.28239
17.32834
17.40493
17.51215
17.54279
17.58874
17.71128
17.83383
17.83383
17.91041
17.95637
18.01764
18.07891
18.10954
18.20145
18.20145
18.20145
18.26272
18.40058
18.4159
18.46185
18.58439
18.78352
18.81416
19.04392
19.05924
19.16647
19.33496
19.41155
19.4575
19.56473
19.58004
19.59536
19.73322
19.90172
20.00894
20.11616
20.22339
20.34593
20.39188
20.42252
20.54506
20.59101
20.69824
20.77483
20.928
21.01991
21.01991
21.12713
21.26499
21.37222
21.47944
21.57135
21.70921
21.7858
21.81643
22.00024
22.03088
22.19937
22.36787
22.49041
22.64359
22.79677
22.96526
23.14907
23.27161
23.42479
23.65456
23.83837
24.00686
24.12941
24.48171
24.80339
25
26
27
28
29
30
];

y2 = [3
3
3
3
3
3
3
3
3
3
3
3
3
3
2.8556
2.82842
2.80541
2.78136
2.75313
2.72908
2.70293
2.66843
2.64124
2.61091
2.58268
2.56386
2.53876
2.52098
2.49275
2.46347
2.43628
2.40805
2.38191
2.35995
2.33276
2.30662
2.28152
2.2491
2.21878
2.19264
2.16022
2.1278
2.08911
2.04833
2.02742
1.99291
1.95736
1.9354
1.91344
1.8852
1.86011
1.83083
1.8005
1.76913
1.73567
1.71057
1.68652
1.65306
1.63529
1.60705
1.58718
1.55895
1.52653
1.50039
1.47634
1.46066
1.43138
1.41255
1.3885
1.35922
1.3404
1.31635
1.29857
1.27661
1.24629
1.21283
1.16995
1.14381
1.10512
1.0748
1.04656
1.01833
0.99323
0.97441
0.94931
0.92212
0.88866
0.85416
0.82697
0.80605
0.77573
0.75063
0.7339
0.6973
0.66175
0.63561
0.62201
0.59796
0.58332
0.553
0.52999
0.51012
0.48084
0.46934
0.44111
0.42229
0.4066
0.38359
0.36791
0.35222
0.32608
0.29576
0.26334
0.2487
0.22779
0.20687
0.17446
0.15877
0.13786
0.11381
0.09185
0.07198
0.06257
0.02806
0.02492
0
0
0
0
0
0
];


% x1=linspace(min(x),max(x));
% y11=interp1(x,y2,x1,'cubic');


Line2 = line(x,y2);

set(Line2, 'LineStyle', '--','LineWidth', 1,  'Color', [44  115  210]/255)

% 坐标区调整
set(gca, 'Box', 'off', ...                                % 边框
         'TickDir', 'out', 'TickLength', [.01 .01], ...   % 刻度
         'XMinorTick', 'off', 'YMinorTick', 'off', ...    % 小刻度
         'XColor', [.1 .1 .1],  'YColor', [.1 .1 .1],...  % 坐标轴颜色
         'XTick', 0:5:30,  'YTick', -1:1:4,...     % 刻度位置、间隔
         'Xlim' ,[0 30],'Ylim' ,[-1 4], ...          % 坐标轴范围
         'Xticklabel',{[0:5:30]},...                   % X坐标轴刻度标签
         'Yticklabel',{[-1:1:4]})                     % Y坐标轴刻度标签
% X、Y轴标签及Legend
hXLabel = xlabel('Time (s)');
hYLabel = ylabel('lateral position (m)');
hLegend = legend([Line2], ...
                 'SV', ...
                 'Location', 'northwest');
% 刻度标签字体和字号
set(gca, 'FontName', 'Times', 'FontSize', 9)
% X、Y轴标签及Legend的字体字号 
set([hXLabel, hYLabel,hLegend], 'FontName',  'Helvetica')
set([hXLabel, hYLabel,hLegend], 'FontSize', 10)
% 背景颜色
set(gca,'Color',[1 1 1])
